﻿using ProjScan.ScanRule.Attr;
using UnityEditor;
using UnityEngine;

namespace ProjScan.ScanRule.SceneCheck
{
    [ScenesCheckRuleAttr]
    internal class Editor_MobileFog : SceneGlobalRule
    {
        public override void Run()
        {
            result = true;
            if (EditorUserBuildSettings.activeBuildTarget == BuildTarget.iOS || EditorUserBuildSettings.activeBuildTarget == BuildTarget.Android)
            {
                result = !RenderSettings.fog;
            }
        }
    }
}